Newton's law of cooling Simulation